<?php
require_once 'lib/adodb5/adodb-errorhandler.inc.php';
require_once 'lib/adodb5/adodb.inc.php';

$DBTYPE = "mysql";
$DBHOST = "localhost";
$DBUSER = "root";
$DBPASSWORD = "";
$DBNAME = "yeuthethao";

$conn = &ADONewConnection($DBTYPE);
$conn->Connect($DBHOST, $DBUSER, $DBPASSWORD, $DBNAME);
$GLOBALS['con'] = $conn;
$GLOBALS['con']->execute("set names utf8");
$GLOBALS['con']->execute("SET session wait_timeout=100");

$xx = $GLOBALS['con']->execute("select * from users where id=?", array(17));
var_dump($xx->getrows());

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
